package org.itboys.dto;

import org.itboys.commons.CommonConstants.DF;
import org.itboys.commons.CommonConstants.NUM;
import org.itboys.trade.entity.Order;
import org.itboys.trade.entity.TicketOrder;

public class SellerOrderListDto {
	private Long id;
	private String orderNo;
	private String fee;
	private String totalFee;
	private String createTime;
	private String payTime;
	private Integer status;
	private String name;
	private String mobile;
	private String address;
	public SellerOrderListDto(Order order) {
		super();
		this.id = order.getId();
		this.orderNo = order.getOrderNo();
		this.fee=NUM.DF_00.format( order.getTotalMoney()/100);
		this.totalFee =NUM.DF_00.format( order.getTotalFee()/100);
		this.createTime = DF.FORMAT_DEFAULT.format(order.getCt());
		this.payTime = null==order.getPayTime()?"":DF.FORMAT_DEFAULT.format(order.getPayTime());
		this.status = order.getStatus();
		this.name = order.getName();
		this.mobile = order.getMobile();
		this.address = order.getAddress();
	}
	public SellerOrderListDto(TicketOrder order) {
		super();
		this.id = order.getId();
		this.orderNo = order.getOrderNo();
		this.fee=NUM.DF_00.format( order.getTotalMoney()/100);
		this.totalFee =NUM.DF_00.format( order.getTotalFee()/100);
		this.createTime = DF.FORMAT_DEFAULT.format(order.getCt());
		this.payTime = null==order.getPayTime()?"":DF.FORMAT_DEFAULT.format(order.getPayTime());
		this.status=order.getStatus();
		this.name=order.getName();
		this.mobile=order.getMobile();
	}
	public SellerOrderListDto() {
		super();
	}
	public String getOrderNo() {
		return orderNo;
	}
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	public String getTotalFee() {
		return totalFee;
	}
	public void setTotalFee(String totalFee) {
		this.totalFee = totalFee;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public String getPayTime() {
		return payTime;
	}
	public void setPayTime(String payTime) {
		this.payTime = payTime;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getFee() {
		return fee;
	}
	public void setFee(String fee) {
		this.fee = fee;
	}
	
}
